#include "rtobject.h"

RTObject::RTObject(QObject *parent) :
    QObject(parent)
{

}

QString RTObject::readLine(QTextStream& stream)
{
    if (!stream.atEnd())
    {
        QString line = stream.readLine();

        while (!stream.atEnd() && ( (!line.isEmpty() && (line.at(0) == '#')) || line.trimmed().isEmpty()) )
        {
            line = stream.readLine();
        }

        return line;

    }

    return QString();
}
